package com.tianyi.factory.simple;

import com.tianyi.factory.Mobile;

public class TestSimpleFactory {

	public static void main(String[] args) {
		Mobile mobile=new SimpleFactory().getMobile("Xiaomi");
		System.out.println("生产出来的手机品牌为:"+mobile.getName());
	}
}
